<?php
!defined('EMLOG_ROOT') && exit('access deined!');
function callback_init(){
	$config = array(
		"waterPos"=>9,
		"waterImage"=>EMLOG_ROOT.'/content/plugins/gvgu_image_watermark/gvgu_watermark.gif',
		"waterText"=>"来源：http://kller.cn",
		"textFont"=>22,
		"textColor"=>"#FF0000",
		"watermarkType"=>"text",
		"watermarkPlace"=>"log&kl_album"
	);
	$kv = new SaeKV();
    // 初始化KVClient对象
    $kv->init();
	$kv->set("gvgu_image_watermark_sae_config", $config);
	if ($kv->errno() != 0) {
		emMsg ($kv->errmsg ());
	}
}

function callback_rm(){
	$kv = new SaeKV();
    $kv->init();
	$kv->delete("gvgu_image_watermark_sae_config");
}